package com.cmower.baeldung.super1;

public class SuperSub extends SuperBase {
    String message = "子类";

    public SuperSub(String message) {
        super(message);
    }

    public SuperSub() {
        super.printMessage();
        printMessage();
    }

    public void getParentMessage() {
        System.out.println(super.message);
    }

    public void printMessage() {
        System.out.println(message);
    }

    public static void main(String[] args) {
        SuperSub superSub = new SuperSub("子类的message");
        superSub.printMessage();
        superSub.getParentMessage();
    }
}
